//
//  TrackVideo.h
//  CoolTennisBall
//
//  Created by CA on 16/3/28.
//  Copyright © 2016年 CoolLang. All rights reserved.
//

#import <UIKit/UIKit.h>

//追踪挥拍模型
@interface VideoTrackItem : RLMObject
@property NSInteger speed;
@property NSInteger strength;
@property NSInteger arc;
@property NSInteger swingSecond;       // 视频第几秒的时候录制的

- (instancetype)initWithSpeed:(NSInteger)speed
                     strength:(NSInteger)strength
                          arc:(NSInteger)arc
                  swingSecond:(NSInteger)swingSecond;

@end

RLM_ARRAY_TYPE(VideoTrackItem)

// 视频
@interface TrackVideo : RLMObject
@property NSDate *creatDate;
@property NSString *name;
@property NSString *path;
@property (readonly) NSString *documentPath;
@property RLMArray<VideoTrackItem> *videoTrackItems;
@property BOOL isSelected;

@property (nonatomic, strong)UIImage *videoImage;

/** 图片路径 */
@property (nonatomic, copy)NSString *imagePath;

- (void)toggleChecked;
- (UIImage *)thumbnailImageForVideo;
- (void)removeVideo;
- (void)removeVideoImage;
@end

RLM_ARRAY_TYPE(TrackVideo)
